
using System;

namespace gtksharpdb
{
	
	
	public class GtkSharpDB
	{
		public DBStatic.DBType dbtype;
		
		private DBStatic dbs = new DBStatic();
		
		public GtkSharpDB()
		{
	
		}
		
		//Setup MySQL Parameters
		public void SetDBParaMySQL(string databaseserver,string databasename, string databaseuser, string databasepin)
		{
					dbtype = DBStatic.DBType.MySQL;
					dbs.dbserver = databaseserver;
					dbs.dbname = databasename;
					dbs.dbuser = databaseuser;
					dbs.dbpin = databasepin;
		}
		
		//Create MySql handling instance
		public MonoMysql CreateMySqlLib()
		{
			MonoMysql mysql = new MonoMysql(dbs);
			return mysql;
		}
		
		
	}
}
